Move the pointer inside the maze to reach the destination before given time ends.
